package com.ganzalang.gmall.threadlocal.service.impl;

import com.ganzalang.gmall.threadlocal.common.util.GlobalParamInfo;
import com.ganzalang.gmall.threadlocal.service.ThreadLocalTest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2021/3/26 15:08
 */
@Service
@Slf4j
public class ThreadLocalTestImp implements ThreadLocalTest {


    @Override
    public void test() {
        log.info("username: {}", GlobalParamInfo.getUsername());
        log.info("userId: {}", GlobalParamInfo.getUserId());
    }
}
